<%@ page language="java" import="java.util.*" pageEncoding="utf-8" import="pojo.*,base.*,service.*,java.text.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <style type="text/css">
#list {
           margin-bottom:10px
}
#all a {
           text-decoration:none;
           color:black;
           }

#all a:link,.toptext a:visited{color:black;}
#all a:hover{color:#A020F0;}  
     body{
	margin:0;
	padding:40px;
	background-image:url("images/bj.jpg");
	background-repeat:no-repeat;
	font:100% Arial, Helvetica, sans-serif;
	color:#555;
	line-height:100%;
}  
 .STYLE1 {font-size: 100%}
 </style>

 <script type="text/javascript" src="jquery/jquery-1.7.2.min.js"></script>


  </head>
  
  <body>
   <div id="all">
<div id="list">
<%
	
    DishesService dts = new DishesService();
   	List<dishes> list = dts.getCount();
   	 
		
%>
  
</div>
<br/>
<center>
	<table width="500" border="1">
      <tr>
        <td width="100"><div align="center">菜品类别</div></td>
        <td width="100"><div align="center">菜品名称</div></td>
        <td width="100"><div align="center">预订次数</div></td>
         <td width="100"><div align="center">价格 </div></td>
      </tr>
<%

		
	for (dishes inf : list) {
	out.println("<tr><td><div align='center'>"+dts.getType(inf.getType()).getName()+"</div></td>");
	out.println("<td><div align='center'>"+inf.getName()+"</div></td>");
	out.println("<td><div align='center'>"+inf.getOrderNum()+"</div></td>");
	out.println("<td><div align='center'>"+inf.getPrice()+"</div></td></tr>");
	}
	%>
	
	
</table>
  </center>
	  </div>
	  
  </body>
</html>
